package com.ujs.eduservice.feign;

import com.ujs.commonutils.constant.R;
import com.ujs.eduservice.feign.impl.VodFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zhangshihao
 * @create 2023-08-09 19:03
 */
@FeignClient(value = "service-vod", fallback = VodFeignServiceImpl.class)
public interface VodFeignService {
    /**
     * 根据videoId，删除阿里云视频
     * @param videoId 阿里云中的视频id
     * @return
     */
    @DeleteMapping("/eduvod/video/deleteAlyVideo/{videoId}")
    R deleteAlyVideo(@PathVariable("videoId") String videoId);

    /**
     * 删除多个视频
     * @param videoIdList 阿里云中的视频id的列表
     * @return
     */
    @DeleteMapping("/eduvod/video/deleteBatch")
    R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
